--- ksh-openbsd_cvs/misc.c	2010-02-23 12:49:20.000000000 +0100
+++ ksh-openbsd_cvs.new/misc.c	2010-04-01 21:01:24.134232647 +0200
@@ -7,7 +7,9 @@
 #include "sh.h"
 #include <ctype.h>
 #include <sys/param.h>	/* for MAXPATHLEN */
+#include <grp.h>
 #include "charclass.h"
+#include "strlcpy.h"
 
 short ctypes [UCHAR_MAX+1];	/* type bits for unsigned char */
 
